package com.uex.dev.manage.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wangchao
 * @since 2024-02-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_device_extend")
public class DeviceExtendPO extends Model<DeviceExtendPO> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "device_id", type = IdType.AUTO)
    private Integer deviceId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deviceProductTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deviceDeliveryTime;

    private String deviceDeliveryUser;

    private String deviceExpressNo;

    private String deviceDeliveryAddr;

    private String deviceReceiveUser;

    private String deviceReceiveTel;

    @TableLogic
    private Byte deleted;

    @Override
    public Serializable pkVal() {
        return this.deviceId;
    }
}
